<PageHeader as |p|>
  <p.top>
    <nav class="breadcrumb">
      <ul>
        <li>
          <span class="sep">&#x0002f;</span>
          <LinkTo @route="vault.cluster.access.identity.aliases">
            {{pluralize (humanize model.identityType)}}
          </LinkTo>
        </li>
      </ul>
    </nav>
  </p.top>
  <p.levelLeft>
    <h1 class="title is-3">
      {{model.name}}
    </h1>
  </p.levelLeft>
</PageHeader>
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
  <nav class="tabs sub-nav">
    <ul>
      {{#each (tabs-for-identity-show model.identityType) as |tab|}}
        <LinkTo @route="vault.cluster.access.identity.aliases.show" @models={{array model.id tab}} @tagName="li">
          <LinkTo @route="vault.cluster.access.identity.aliases.show" @models={{array model.id tab}}>
            {{capitalize tab}}
          </LinkTo>
        </LinkTo>
      {{/each}}
    </ul>
  </nav>
</div>
<Toolbar>
  <ToolbarActions>
    <ToolbarLink
      @params={{array "vault.cluster.access.identity.aliases.edit" model.id}}
      @data-test-alias-edit-link=true
    >
      Edit {{lowercase (humanize model.identityType)}}
    </ToolbarLink>
  </ToolbarActions>
</Toolbar>
{{component (concat 'identity/item-alias/alias-' section) model=model}}
